<template>
	<xbd-pages-content :title="title">
		<template #content>
			<view class="department-info">
				<view class="header">
					<view class="left">
						通迅录
						<uni-icons type="arrowright" size="14" color="#999999"></uni-icons>
						<text>{{ parentTitle }}</text>
						<uni-icons type="arrowright" size="14" color="#999999"></uni-icons>
						<text class="text">{{ title }}</text>
					</view>
					<view class="right">
						{{ num }}人
					</view>
				</view>
				<view class="box">
					<view class="search">
						<uni-easyinput class="ipt" v-model="keyword" placeholder="搜索人员姓名查询" placeholderStyle="color: #999;"></uni-easyinput>
						<image class="img" src="@/static/images/common/search.svg" mode="" @click="search"></image>
					</view>
					<uni-list :border="false">
						<mail-personnel-list></mail-personnel-list>
						<!-- <xbd-null-list v-if="!list.length"></xbd-null-list> -->
						<xbd-loading-more :status-num="statusNum" :is-load-more="isLoadMore"></xbd-loading-more>
					</uni-list>
				</view>
			</view>
		</template>
	</xbd-pages-content>
</template>

<script>
	import MailPersonnelList from '@/components/maillist/MailPersonnelList.vue';
	export default {
		data() {
			return {
				title: '',
				parentTitle: '',
				num: 0,
				list: [],
				statusNum: 0,
				isLoadMore: false,
				keyword: ''
			};
		},
		components: {
			MailPersonnelList
		},
		methods: {
			search() {
			}
		},
		onLoad(res) {
			this.title = res.title;
			this.parentTitle = res.parentTitle;
		}
	}
</script>

<style lang="scss" scoped>
	.department-info {
		.header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			
			padding: 20px 50rpx;
			margin-bottom: 5px;
			
			background-color: #FFFFFF;
			.left {
				display: flex;
				align-items: center;
				
				font-size: 24rpx;
				
				color: #999999;
				.uni-icons {
					margin: 0 10rpx;
				}
				.text {
					font-size: 24rpx;
					
					color: $uni-color-primary;
				}
			}
			.right {
				font-size: 14px;
				
				color: $uni-color-primary;
			}
		}
		.box {
			padding: 20px 50rpx;
			
			background-color: #FFFFFF;
		}
		.mail-personnel-list {
			border-bottom: 1px solid #EEEEEE;
		}
		.search {
			display: flex;
			justify-content: space-between;
			align-items: center;
			
			margin-bottom: 10px;
			.img {
				width: 40rpx;
				height: 40rpx;
				margin-left: 20rpx;
			}
			.ipt {
				flex: 1;
				height: 32px;
				
				font-size: 28rpx;
				
				color: $uni-text-color;
			}
		}
	}
</style>
